package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.db4.model.result.ShopOwnerInfoResult;
import cn.stylefeng.guns.sys.modular.system.db5.model.result.MenDianInfoResult;
import cn.stylefeng.guns.sys.modular.system.entity.BtyGoodsPay;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyGoodsPayParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyGoodsPayResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyGoodsPayShopOwerResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.http.ResponseEntity;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jiangge
 * @since 2021-07-08
 */
public interface BtyGoodsPayService extends IService<BtyGoodsPay> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    void add(BtyGoodsPayParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    void delete(BtyGoodsPayParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    ResponseData update(BtyGoodsPayParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    BtyGoodsPayResult findBySpec(BtyGoodsPayParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    List<BtyGoodsPayResult> findListBySpec(BtyGoodsPayParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-08
     */
    LayuiPageInfo findPageBySpec(BtyGoodsPayParam param, Map<String, ShopOwnerInfoResult> map);

    ResponseData initData(String userName, BtyGoodsPayParam param);

    ResponseData synData(String userName, BtyGoodsPayParam param, Map<String, ShopOwnerInfoResult> map);

    ResponseData send(BtyGoodsPayParam btyGoodsPayParam);

    ResponseData batchSend(BtyGoodsPayParam btyGoodsPayParam);

    List<BtyGoodsPayResult> findAllData(BtyGoodsPayParam btyGoodsPayParam);

    void submitDatas(BtyGoodsPayParam param);

    ResponseData audit(BtyGoodsPayParam param);

    List<MenDianInfoResult> findAllMenDianInfo();

    List<BtyGoodsPayResult> selectAllCwry(BtyGoodsPayParam param);

    LayuiPageInfo findAllPageData(BtyGoodsPayParam param);

    ResponseEntity<byte[]> exportExcel(HttpServletRequest request, HttpServletResponse response, BtyGoodsPayParam param, Map<String, ShopOwnerInfoResult> map);

    ResponseData revoke(BtyGoodsPayParam param);

    List<BtyGoodsPayShopOwerResult> selectShopOwer(BtyGoodsPayParam param);

    ResponseData editSumMoney(String date);

    ResponseData auditBatch(BtyGoodsPayParam btyGoodsPayParam);
}
